var Redis = require("ioredis");

var redis = new Redis(32768, "127.0.0.1");

redis.set("foo", "bar");
redis.get("foo", function (err, result) {
    console.log(result);
});
redis.del("foo");